luci-app-transmission: fix '&nbsp' exception in OpenWrt theme
authorAlexander Egorenkov <[email protected]>
Sun, 4 Apr 2021 10:41:03 +0000 (12:41 +0200)
committerHannu Nyman <[email protected]>
Sun, 11 Apr 2021 08:24:07 +0000 (11:24 +0300)
Convert '&nbsp;' to '&#160;' which is both syntactically correct (semicolon present) and XHTML compliant.

Signed-off-by: Alexander Egorenkov <[email protected]>
applications/luci-app-transmission/htdocs/luci-static/resources/view/transmission.js

index f2c42ddba56a37709a5a41414559e79be98444f4..0ba84a9b522e87c95b2b8dc8c73f361231244220 100644 (file)
@@ -35,7 +35,7 @@ return view.extend({
 
                var button = '';
                if (running && webinstalled)
-                       button = '&nbsp;<a class="btn" href="http://' + window.location.hostname + ':' + port + '" target="_blank" rel="noreferrer noopener">' + _('Open Web Interface') + '</a>';
+                       button = '&#160;<a class="btn" href="http://' + window.location.hostname + ':' + port + '" target="_blank" rel="noreferrer noopener">' + _('Open Web Interface') + '</a>';
 
                var m, s, o;